/*
 * @Description: 配送方式
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-06-30 16:42:08
 * @FilePath: /yuxiuproweb/src/api/asc/delivery/index.js
 */
import request from "@/utils/request";

// 查询订单-配送方式列表
export function listMethod(query) {
  return request({
    url: "/pro/method/list",
    method: "get",
    params: query,
  });
}

// 查询订单-配送方式详细
export function getMethod(orderDeliveryMethodId) {
  return request({
    url: "/pro/method/" + orderDeliveryMethodId,
    method: "get",
  });
}

// 新增订单-配送方式
export function addMethod(data) {
  return request({
    url: "/pro/method",
    method: "post",
    data: data,
  });
}

// 修改订单-配送方式
export function updateMethod(data) {
  return request({
    url: "/pro/method",
    method: "put",
    data: data,
  });
}

// 删除订单-配送方式
export function delMethod(orderDeliveryMethodId) {
  return request({
    url: "/pro/method/" + orderDeliveryMethodId,
    method: "delete",
  });
}
